import '@/style/index.scss'
import { createApp } from 'vue'
import App from './App.vue'
import { createPinia } from 'pinia'
import router from './router'

//引入ElementPlus
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import zhCn from 'element-plus/es/locale/lang/zh-cn'

//svg插件需要配置代码
import 'virtual:svg-icons-register'
//全局组件注册
import GlobalComponent from '@/components/index'
//引入路由鉴权文件=>路由守卫
import '@/router/permisstion'

// console.log(import.meta.env);

const app = createApp(App)
app.use(createPinia())
  .use(GlobalComponent)
  .use(ElementPlus, {
    locale: zhCn,
  })
  .use(router)
app.mount('#app')
